package com.example.shuiyin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_quota")
public class UserQuota {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    private Long maxStorageSize;
    private Long usedStorageSize;
    private Integer maxProcessingCount;
    private Integer usedProcessingCount;
    private LocalDateTime resetDate;
    private LocalDateTime lastUsedTime;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    
    public Long getStorageQuota() {
        return maxStorageSize;
    }
    
    public Long getMaxStorage() {
        return maxStorageSize;
    }
    
    public Long getUsedStorage() {
        return usedStorageSize;
    }
} 